package cn.stylefeng.guns.modular.mapper;

import cn.stylefeng.guns.modular.entity.Reserved;
import cn.stylefeng.guns.modular.vo.ReservedInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 李宝嘉
 * @Date 2022/1/1 15:55
 */
public interface ReservedMapper extends BaseMapper<Reserved> {
    Integer countByTimePeriod(@Param("start") String start, @Param("end") String end, @Param("userId") Long userId, @Param("status") Integer status);

    List<ReservedInfoVO> getListByUserIdAndTimePeriod(@Param("userId") Long userId, @Param("start") String start, @Param("end") String end);

    List<Reserved> getListByRemainingTime(@Param("start") String start, @Param("end") String end, @Param("seatId") Long seatId);
}
